from flask import Flask,request
from subsidy.app.controller.UserController import UserController
from subsidy.app.interceptor.tokenInterceptor import checkTokenRequest
from flask_cors import CORS
app = Flask(__name__)
CORS(app)

user_controller = UserController()
app.before_request(checkTokenRequest)

app.register_blueprint(user_controller.user_bp, url_prefix ='/user')
app.config['JSON_AS_ASCII'] = False # 中文乱码

if __name__ == '__main__':
    app.run(debug = True)
